package com.glodon.ggzy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * ZhUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "zh_user")
public class ZhUser implements java.io.Serializable {

	// Fields    

	private String id;

	private String approveStatus;

	private String roleMapperId;

	private String userName;

	// Constructors

	/** default constructor */
	public ZhUser() {
	}

	/** full constructor */
	public ZhUser(String approveStatus, String roleMapperId, String userName) {
		this.approveStatus = approveStatus;
		this.roleMapperId = roleMapperId;
		this.userName = userName;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 40)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "approve_status", length = 40)
	public String getApproveStatus() {
		return this.approveStatus;
	}

	public void setApproveStatus(String approveStatus) {
		this.approveStatus = approveStatus;
	}

	@Column(name = "role_mapper_id", length = 40)
	public String getRoleMapperId() {
		return this.roleMapperId;
	}

	public void setRoleMapperId(String roleMapperId) {
		this.roleMapperId = roleMapperId;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
